Functions | Variables
MultiLightCtrl_ImageStitching Namespace Reference

Functions

def decoding_char (ctypes_char_array)
 
def print_devices_info (deviceList)
 

Variables

 currentsystem = platform.system()
 
 input_func = raw_input
 
int exposure_num = 0
 
list HB_format_list
 
 SDKVersion = MvCamera.MV_CC_GetSDKVersion()
 
 deviceList = MV_CC_DEVICE_INFO_LIST()
 
tuple tlayerType
 
 ret = MvCamera.MV_CC_EnumDevices(tlayerType, deviceList)
 
 nConnectionNum = input_func("please input the number of the device to connect:")
 
 str_exposure_num = input_func("please input current exposure number:")
 
 cam = MvCamera()
 
 stDeviceList = cast(deviceList.pDeviceInfo[int(nConnectionNum)], POINTER(MV_CC_DEVICE_INFO)).contents
 
 nPacketSize = cam.MV_CC_GetOptimalPacketSize()
 
 stOutFrame = MV_FRAME_OUT()
 
 stDecodeParam = MV_CC_HB_DECODE_PARAM()
 
 stReconstructParam = MV_RECONSTRUCT_IMAGE_PARAM()
 
list dst_buffer_list = []
 
 nDevPayloadSize = c_uint64()
 
 nMemAlignment = c_uint()
 
 nPayloadSize = nDevPayloadSize.value
 
 pSrcBuf
 
 nSrcLen
 
 pDstBuf
 
 nDstBufSize
 
 nWidth
 
 nHeight
 
 enPixelType
 
 pSrcData
 
 nSrcDataLen
 
 nExposureNum
 
 enReconstructMethod
 
 dst_buffer_len = int(stReconstructParam.nSrcDataLen/exposure_num)
 
tuple dst_buffer = (c_ubyte * dst_buffer_len)()
 
 pBuf
 
 nBufSize
 
string file_name
 
string c_file_path = file_name.encode('ascii')
 
 stSaveParam = MV_SAVE_IMAGE_TO_FILE_PARAM_EX()
 
 nDataLen
 
 sub_len = stReconstructParam.stDstBufList[i].nBufLen
 
tuple img_buff = (c_ubyte * stSaveParam.nDataLen)()
 
 pData
 
 enImageType
 
 pcImagePath
 
 iMethodValue
 

Function Documentation

◆ decoding_char()

def MultiLightCtrl_ImageStitching.decoding_char (   ctypes_char_array)
Safely decode a string from a ctypes character array.
Compatible with Python 2.x and 3.x, as well as 32-bit and 64-bit environments.

◆ print_devices_info()

def MultiLightCtrl_ImageStitching.print_devices_info (   deviceList)

Variable Documentation

◆ currentsystem

currentsystem = platform.system()

◆ input_func

input_func = raw_input

◆ exposure_num

exposure_num = 0

◆ HB_format_list

list HB_format_list

◆ SDKVersion

SDKVersion = MvCamera.MV_CC_GetSDKVersion()

◆ deviceList

deviceList = MV_CC_DEVICE_INFO_LIST()

◆ tlayerType

tuple tlayerType
Initial value:
1 = (MV_GIGE_DEVICE | MV_USB_DEVICE | MV_GENTL_CAMERALINK_DEVICE
2  | MV_GENTL_CXP_DEVICE | MV_GENTL_XOF_DEVICE)

◆ ret

ret = MvCamera.MV_CC_EnumDevices(tlayerType, deviceList)

◆ nConnectionNum

nConnectionNum = input_func("please input the number of the device to connect:")

◆ str_exposure_num

str_exposure_num = input_func("please input current exposure number:")

◆ cam

cam = MvCamera()

◆ stDeviceList

stDeviceList = cast(deviceList.pDeviceInfo[int(nConnectionNum)], POINTER(MV_CC_DEVICE_INFO)).contents

◆ nPacketSize

nPacketSize = cam.MV_CC_GetOptimalPacketSize()

◆ stOutFrame

stOutFrame = MV_FRAME_OUT()

◆ stDecodeParam

stDecodeParam = MV_CC_HB_DECODE_PARAM()

◆ stReconstructParam

stReconstructParam = MV_RECONSTRUCT_IMAGE_PARAM()

◆ dst_buffer_list

list dst_buffer_list = []

◆ nDevPayloadSize

nDevPayloadSize = c_uint64()

◆ nMemAlignment

nMemAlignment = c_uint()

◆ nPayloadSize

nPayloadSize = nDevPayloadSize.value

◆ pSrcBuf

pSrcBuf

◆ nSrcLen

nSrcLen

◆ pDstBuf

pDstBuf

◆ nDstBufSize

nDstBufSize

◆ nWidth

nWidth

◆ nHeight

nHeight

◆ enPixelType

enPixelType

◆ pSrcData

pSrcData

◆ nSrcDataLen

nSrcDataLen

◆ nExposureNum

nExposureNum

◆ enReconstructMethod

enReconstructMethod

◆ dst_buffer_len

dst_buffer_len = int(stReconstructParam.nSrcDataLen/exposure_num)

◆ dst_buffer

tuple dst_buffer = (c_ubyte * dst_buffer_len)()

◆ pBuf

pBuf

◆ nBufSize

nBufSize

◆ file_name

string file_name
Initial value:
1 = "Image_w%d_h%d_fn%d.bmp" % (stReconstructParam.nWidth, stReconstructParam.nHeight,
2  stOutFrame.stFrameInfo.nFrameNum)

◆ c_file_path

string c_file_path = file_name.encode('ascii')

◆ stSaveParam

◆ nDataLen

nDataLen

◆ sub_len

sub_len = stReconstructParam.stDstBufList[i].nBufLen

◆ img_buff

tuple img_buff = (c_ubyte * stSaveParam.nDataLen)()

◆ pData

pData

◆ enImageType

enImageType

◆ pcImagePath

pcImagePath

◆ iMethodValue

iMethodValue